package com.abc.xxx.dao;

import com.abc.xxx.model.User;
import com.abc.xxx.model.vo.UserInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper extends BaseMapper<User> {

    User findUserByName(@Param("name") String name);

    UserInfo findUserInfoById(@Param("id") Integer id);

    List<User> findUsers(@Param("currentUserId") Integer currentUserId, @Param("key") String key);

}
